package com.atguigu.service;

import com.alipay.api.AlipayApiException;
import com.atguigu.entity.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 支付信息表 服务类
 * </p>
 *
 * @author linjiang
 * @since 2022-08-09
 */
public interface PaymentInfoService extends IService<PaymentInfo> {

    String createQrCode(Long orderId) throws AlipayApiException;

    PaymentInfo getPaymentInfo(String outTradeNo);

    void updatePaymentInfo(String outTradeNo, String name, Map<String, String> aliPayParam);

    boolean reFundAliPayTrade(Long orderId) throws AlipayApiException;

    boolean queryAliPayTrade(Long orderId) throws AlipayApiException;

    boolean closeAliPayTrade(Long orderId) throws AlipayApiException;
}
